package wangxiaotao.service;

import java.util.Map;

public interface TaskService{
    String DEFAULT_ORDER_PREFIX = "order:cache:";
    String DEFAULT_ORDER_PROPERTIES = "out_trade_no";

    void HandlerJob(Map<String,Object> properties);

    Integer jobId();

    default String getOrderCachePrefix(Object id){
        return DEFAULT_ORDER_PREFIX+id;
    }
}
